from http.client import UnimplementedFileMode


class Vehicle(object):
    def run(self):
        raise Exception("Not implemented")

class Car(Vehicle):
    def run(self):
        print("Car is running")
    def kongtiao(self):
        pass

class Bike(Vehicle):
    def run(self):
        print("Bike is running")
    def jiaodeng(self):
        pass

def toToBeiJing(vehicle):
    if isinstance(vehicle, Vehicle):
        vehicle.run()